<!doctype html>
<html class="os_win7"><!--os_winXp,os_mac,os_vista,os_win7-->
<head>
	<meta charset="utf-8" />
	<title>QAMS</title>
	<link href="css/project.css" rel="stylesheet" media="screen" />
</head>
<body>
	<div class="body">
		<div id="qam_notify_area" class="sys_notify_pane pane_w" style="display:none"><div class="sys_notify_pane_inner"></div></div>
			<!-- 管理项目 开始 -->
			<div class="mod_manage_main_proj">
				<div class="hd">
					<h2 id="page_title"><i class="ico ico_project_add"></i><span></span></h2>
				</div>
				<div class="bd">
					<!-- 添加项目表单 开始 -->
					<div class="form_project_add">
						<div class="panel">
							<span class="panel_tit">根项目：</span>
							<div class="panel_main">
								<div class="radios_list">
									<label><input type="radio" name="root_flag" onclick="$('#more_info').hide();$('#more_svn').show();" value="1" /> 是</label>
									<label><input type="radio" name="root_flag" onclick="$('#more_info').show();$('#more_svn').hide();" checked="checked" value="0" /> 否</label>
								</div>
							</div>
						</div>
						
						<div class="panel">
							<span class="panel_tit">项目名称：</span>
							<div class="panel_main">
								<input type="text" class="inputstyle" id="name" />
							</div>
							<!-- 表单提示-错误提示 开始 -->
								<div class="fhint fhint_error" id="fhint_area_name" style="display:none">
									<i class="ico ico_error"  id="fhint_ico"></i> <span id="fhint_text">错误提示...</span>
									<i class="ico ico_arrow"></i>
								</div>
							<!-- 表单提示-错误提示 结束 -->
						</div>

						<div class="panel none">
							<span class="panel_tit">项目描述：</span>
							<div class="panel_main">
								<input type="text" class="inputstyle"  id="info" />
							</div>
							<!-- 表单提示-正确提示 开始 -->
								<div class="fhint fhint_succeed none">
									<i class="ico ico_succeed"></i> <span>正确提示... </span>
									<i class="ico ico_arrow"></i>
								</div>
								<!-- 表单提示-正确提示 结束 -->
						</div>

						
						<div class="panel" id="more_svn" style="display:none">
							<span class="panel_tit">SVN路径：</span>

							<div class="panel_main">
								<input type="text" class="inputstyle input_svn" id="svn"/>
							</div>
						</div>
						
						<div id="more_info" style="display: ">
							<div class="panel">
								<span class="panel_tit">项目从属：</span>
								<div class="panel_main">
									<input type="hidden" id="parent_id" value="">
									<div class="type_select">
										<div class="like_select"><p id="parent_id_name">请选择</p><span class="icon_down"></span></div>
										<div class="select_drop_down" id="parent_id_list" style="visibility:hidden">
											<ul>
												<!--<li><a>open_proj</a></li>
												 <li><a>Qzone_v5</a></li>
												 <li><a>xy_proj</a></li>
												 <li><a>无</a></li>
												-->
											</ul>
										</div>
									</div>
								</div>
							</div>
							<div class="panel">
								<span class="panel_tit">项目类型：</span>
								<div class="panel_main">
									<input type="hidden" id="type_id" value="">
									<div class="type_select">
										<div class="like_select" id=""><p id="type_id_name">请选择</p><span class="icon_down"></span></div>
										<div class="select_drop_down" id="type_id_list" style="visibility:hidden">
											<ul>
												<!--
												<li><a project_type="1">标准项目</a></li>
												<li><a project_type="2">独立项目</a></li>
												-->
											</ul>
										</div>
									</div>
								</div>
							</div>
							
						</div>
						<div class="panel">
							<span class="panel_tit">公用css：</span>

							<div class="panel_main">
								<input type="hidden" value="" id="css_data">
								<div class="select_file_area">
									<!--<input class="inputstyle css_name" id="css_name" value="" />-->
									<div class="upload_file"  id="upload_file_area">
										<p class="upload_file_watermark">拖动文件到这里...</p>
										<input type="hidden" id="css_file_data" value="[]" />
										<ul class="css_file_list" id="css_file_list">
										</ul>
									</div>

								</div>
							</div>
						</div>

					</div>
					<!-- 添加项目表单 结束 -->
				</div>
				<div class="ft">
					<div class="btns">
						<a href="#" class="btn btn_ok" id="btn_save" ><span>确定</span></a> <a href="javascript:history.go(-1)">取消</a>
					</div>
				</div>
			</div>
			<!-- 管理项目 结束 -->
	</div>



<div id="message_div"></div>

<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="js/public.js" type="text/javascript"></script>
<script src="js/functions.js" type="text/javascript"></script>
<script src="js/project.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function () {
		var parm=window.location.href.split("?")[1]*1;
		project.addInit();
        project.parentList();
		project.typeList();
    });


</script>

</body>
</html>
